﻿using MengLin.OOP.DesignPattern.Entity;
using MengLin.OOP.DesignPattern.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.Implement.MySql
{
    public class MySqlUserService : IUserService
    {
        /// <summary>
        /// ctor
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        /// <param name="age"></param>
        public MySqlUserService(int id ,string name,int[] array)
        {

        }

        /// <summary>
        /// 创建用户
        /// </summary>
        /// <param name="user"></param>
        public void CreateUser(User user)
        {
            Console.WriteLine("这里是MySql创建用户");
        }

        /// <summary>
        /// 根据用户id查询用户
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public User GetUser(int id)
        {
            Console.WriteLine($"这里是id为{id}的MySql用户");
            return null;
        }
    }
}
